#!/usr/bin/env python
# -*- coding:utf8 -*-
"""
Author : mafei
@Date   : 2019/11/30

"""
# http错误信息
HTTP_TIMEOUT_CODE = 1
HTTP_DNS_CODE = 2
API_ACCESS_KEY = ""

http_error_dict = {
    HTTP_TIMEOUT_CODE: "网站请求超时",
    HTTP_DNS_CODE: "DNS解析失败"
}

# redis相关
redis_server = "127.0.0.1"
redis_port = 6379
redis_db = 3
redis_pwd = "mmonitor"


# api相关

attack_msg = "想干什么，你的行为已经被记录下来了"

# 发送邮件的类型
s_alert_type = "alert"
s_recovery_type = "recovery"


# 预警类型

i_email_send = 1
i_phone_send = 2
i_wechat_send = 3

uri = "www.jiankong.art"